package com.mgy.db.sharding.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 配置
 *
 * @author mgy
 * @date 2019.09.05
 */
@ConfigurationProperties(prefix = "shardingjdbc.config")
public class ShardingJdbcMybatisProperties {
    /**
     * Sharding jdbc分库路径
     * classpath:yaml/config-sharding-rule.yaml
     */
    private String filePath;
    /**
     * classpath:mybatis/mapper/*.xml
     */
    private String mybatisMapperLocations;
    /**
     * classpath:mybatis/mybatis-config.xml
     */
    private String mybatisConfigLocation;
    /**
     * mapper-scan-base-package
     */
    private String mapperScanBasePackage;
    /**
     * 是否初始化默认数据源表的元数据
     */
    private Boolean tableMetaDataInit;

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getMybatisMapperLocations() {
        return mybatisMapperLocations;
    }

    public void setMybatisMapperLocations(String mybatisMapperLocations) {
        this.mybatisMapperLocations = mybatisMapperLocations;
    }

    public String getMybatisConfigLocation() {
        return mybatisConfigLocation;
    }

    public void setMybatisConfigLocation(String mybatisConfigLocation) {
        this.mybatisConfigLocation = mybatisConfigLocation;
    }

    public String getMapperScanBasePackage() {
        return mapperScanBasePackage;
    }

    public void setMapperScanBasePackage(String mapperScanBasePackage) {
        this.mapperScanBasePackage = mapperScanBasePackage;
    }

    public Boolean getTableMetaDataInit() {
        return tableMetaDataInit;
    }

    public void setTableMetaDataInit(Boolean tableMetaDataInit) {
        this.tableMetaDataInit = tableMetaDataInit;
    }
}
